/*
 * 文 件 名:  MqttBean.java
 * 版    权:  Archermind.NANJING 2014-9-15,  All rights reserved
 * 描    述:  <描述>
 * 修 改 人:  Administrator
 * 修改时间:  2014-9-15   下午04:18:12
 * 跟踪单号:  <跟踪单号>
 * 修改单号:  <修改单号>
 * 修改内容:  <修改内容>
 */
package com.demo.netty.mqtt;

/**
 * <一句话功能简述>
 * <功能详细描述>
 * 
 * @author  lpf
 * @version  [版本号, 2014-9-15]
 * @see  [相关类/方法]
 * @since  [产品/模块版本]
 */
public class MqttBean
{
    // 订阅号 关键字
    private String topic;
    
    // 接收broker 的缓存数据 false  true 清空缓存数据
    private boolean clean;
    
    private String userName;
    
    private String passWord;
    
    private String brokerUrl;
    
    private String clientId;
    
    // 接收broker缓存数据，qos不能为0
    private int qos;
    
    private byte[] body;
    
    public String getTopic()
    {
        return topic;
    }
    
    public void setTopic(String topic)
    {
        this.topic = topic;
    }
    
    public boolean isClean()
    {
        return clean;
    }
    
    public void setClean(boolean clean)
    {
        this.clean = clean;
    }
    
    public String getUserName()
    {
        return userName;
    }
    
    public void setUserName(String userName)
    {
        this.userName = userName;
    }
    
    public String getPassWord()
    {
        return passWord;
    }
    
    public void setPassWord(String passWord)
    {
        this.passWord = passWord;
    }
    
    public String getBrokerUrl()
    {
        return brokerUrl;
    }
    
    public void setBrokerUrl(String brokerUrl)
    {
        this.brokerUrl = brokerUrl;
    }
    
    public String getClientId()
    {
        return clientId;
    }
    
    public void setClientId(String clientId)
    {
        this.clientId = clientId;
    }
    
    public int getQos()
    {
        return qos;
    }
    
    public void setQos(int qos)
    {
        this.qos = qos;
    }
    
    public byte[] getBody()
    {
        return body;
    }
    
    public void setBody(byte[] body)
    {
        this.body = body;
    }
    
}
